package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.WareHousing;
import com.woniuxy.mapper.WareHousingMapper;
import com.woniuxy.service.WarehousingService;

@Service
public class WareHousingServiceImpl implements WarehousingService{
	@Autowired
	private WareHousingMapper wareHousingMapper;

	@Override
	public List<WareHousing> findWareHousing() {
		
		return wareHousingMapper.findWareHousing();
	}

	@Override
	public List<WareHousing> findWareHousingDeatilById(String worder) {
		return wareHousingMapper.findWareHousingDeatilById(worder);
	}

	@Override
	public int insertWarehousing(WareHousing wareHousing) {
		int i=wareHousingMapper.insertWarehousing(wareHousing);
		return i;
	}

	@Override
	public List<WareHousing> findWareHousingByCgname(String cgname) {
		return wareHousingMapper.findWareHousingByCgname(cgname);
	}

	@Override
	public int updateWarehousing(String worder) {
		int i=wareHousingMapper.updateWarehousing(worder);
		return i;
	}

	@Override
	public int deleteWarehousing(String worder) {
		int i=wareHousingMapper.deleteWarehousing(worder);
		return i;
	}

	@Override
	public int updateWarehousing_tp(String worder) {
		int i=wareHousingMapper.updateWarehousing_tp(worder);
		return i;
	}

	
}
